# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer: Antoine Fontaine <antoine.fontaine@epfl.ch>
pkgname=reprotest
_pyname=reprotest
pkgver=0.7.14
pkgrel=0
pkgdesc="Build packages and check them for reproducibility"
url="https://salsa.debian.org/reproducible-builds/reprotest"
arch="noarch !armv7 !x86 !mips !mips64 !armhf" # diffoscope
license="GPL-3.0-or-later"
depends="python3 diffoscope py3-rstr py3-distro"
makedepends="py3-setuptools py3-wheel"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="b4c496c37f65fc5a14cf673e54d56cdeebf869d86c1d8ccffbbdca07a807f1c53d3e32a23c57c6281d4a73aff393e6f58b741fd286faf580fe97add16227b8e2  reprotest-0.7.14.tar.gz"
